﻿using Domain.Entity;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EFCore.Configers
{
    public class RolesJurisdictionConfigers : IEntityTypeConfiguration<RolesJurisdiction>
    {
        public void Configure(EntityTypeBuilder<RolesJurisdiction> builder)
        {
            builder.ToTable(nameof(RolesJurisdiction));
            builder.Property(x => x.RolesID).IsRequired();
            builder.Property(x => x.JuriID).IsRequired();
        }
    }
}
